package com.jumi.microservice.service;


import com.jumi.microservice.common.page.TableDataInfo;
import com.jumi.microservice.dto.comment.dto.*;

/**
 * @author Administrator
 */
public interface ICommentService {
    /**
     * 商品spu最新一条评论
     *
     * @param spuId
     * @return
     */
    CommentApiOneResponse commentNewOne(Long spuId);

    /**
     * addComment
     *
     * @param commentApiAddRequest
     * @return
     */
    Boolean addComment(CommentApiAddRequest commentApiAddRequest);

    /**
     * 评论列表
     *
     * @param commentApiListRequest
     * @return
     */
    TableDataInfo<CommentApiListResponse> commentsApiList(CommentApiListRequest commentApiListRequest);

    /**
     * spu商品 评论列表
     *
     * @param commentSpuRequest
     * @return
     */
    TableDataInfo<CommentApiListResponse> commentListSpuList(CommentSpuRequest commentSpuRequest);

    /**
     * 评论批量添加
     *
     * @param commentApiAddBatchRequest
     * @return
     */
    boolean addBatchComment(CommentApiAddBatchRequest commentApiAddBatchRequest);

    /**
     * 新版获取最新一条评论
     *
     * @param commentApiOneRequest
     * @return
     */
    CommentApiOneResponse getCommentNewOned(CommentApiOneRequest commentApiOneRequest);

    /**
     * 商品评论列表orderid
     *
     * @param commentApiUidRequest
     * @return
     */
    TableDataInfo<CommentApiUidResponse> commentListUid(CommentApiUidRequest commentApiUidRequest);

    /**
     * spu商品所有评价顶部评论数量一级搜索
     *
     * @param commentSpuGidRequest
     * @return
     */
    CommentSpuGidResponse commentGidNum(CommentSpuGidRequest commentSpuGidRequest);

    /**
     * spu商品所有评价顶部评论数量
     * 二级搜索商品评价图片回头客数量
     *
     * @param commentSpuImageNumRequest
     * @return
     */
    CommentSpuImageNumResponse commentGidTwoNum(CommentSpuImageNumRequest commentSpuImageNumRequest);
}
